package com.cloud.logger.zchain.zchainserver.entity.po;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * User: wcy
 * Date: 2017/11/7
 * Time: 15:51
 */
@Data
public class AngelaLoggerPo {

    //接口名
    @JsonProperty("interface_name")
    @JSONField(name = "interface_name")
    @ApiModelProperty(name = "interface_name", notes = "接口名", example = "/gis//ucTenant/getRightMenu.json")
    private String interfaceName;
    //接口ip地址
    @JsonProperty("interface_ip")
    @JSONField(name = "interface_ip")
    @ApiModelProperty(name = "interface_ip", notes = "接口ip地址", example = "/gis//ucTenant/getRightMenu.json")
    private String interfaceIp;
    //父节点的id，rpc或者httpclient请求时使用（拦截器时为空）
    @JsonProperty("parent_node")
    @JSONField(name = "parent_node")
    @ApiModelProperty(name = "parent_node", notes = "父节点的id，rpc或者httpclient请求时使用（拦截器时为空）", example = "")
    private String parentNode;
    //HTTP请求消息中的请求方式
    @JsonProperty("start_time")
    @JSONField(name = "start_time")
    @ApiModelProperty(name = "start_time", notes = "HTTP请求消息中的请求方式", example = "2017-11-07 09:01:01")
    private String startTime;
    //所属景区
    @JsonProperty("scenic")
    @JSONField(name = "scenic")
    @ApiModelProperty(name = "scenic", notes = "景区", example = "drore")
    private String scenic;
    //所属项目
    @JsonProperty("project")
    @JSONField(name = "project")
    @ApiModelProperty(name = "project", notes = "所属项目", example = "drore_gis")
    private String project;

    //消耗时间
    @JsonProperty("elapsed_time")
    @JSONField(name = "elapsed_time")
    @ApiModelProperty(name = "elapsed_time", notes = "消耗时间", example = "100")
    private Long elapsedTime;
    @JsonProperty("status")
    @JSONField(name = "status")
    @ApiModelProperty(name = "status", notes = "状态(8200成功,8500错误,200成功,500,404等)", example = "8500")
    private String status;

    //结束时间
    @JsonProperty("end_time")
    @JSONField(name = "end_time")
    @ApiModelProperty(name = "end_time", notes = "结束时间", example = "2017-11-07 09:01:01")
    private String endTime;
}
